﻿/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
    //默认语言设置, 简体中文   
	config.defaultLanguage = 'zh-cn';
	
	//宽度设置, 100%
	config.width = '100%';
	
	//高度设置 400px
	//config.height = 400;
	
	//编辑器默认回车使用 <br /> 代替 
	config.enterMode = CKEDITOR.ENTER_BR;
	
	//按住 Shift + Enter 时使用段落P标记开始新行
	config.shiftEnterMode = CKEDITOR.ENTER_P;
	
	//不使用HTML实体输出, 接受HTML格式编辑数据
	config.entities = false;
	
	config.tabIndex = 1;
	
	//TAB 键宽度设置为4个字符宽度
	config.tabSpaces = 4;

	//编辑器菜单模式
    config.toolbar = 'Full';
    //编辑器配置菜单详情
	config.toolbar_Full = [
        ['Source','-','Save','NewPage','Preview','-','Templates'],
        ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
        ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
        '/',
        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
        ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['Link','Unlink','Anchor'],
        '/',
        ['Styles','Format','Font','FontSize'],
        ['TextColor','BGColor'],
        ['Maximize', 'ShowBlocks','-','About']
    ];
};
